import React from 'react';
import { Switch, Route, Redirect } from 'react-router-dom'
import Footer from './components/Footer'
import Curriculum from './views/curriculum'
import Application from './views/application'

import News from './views/news'
import User from './views/user'

function App () {
  return (
    <div className="container">
      <Switch>
        <Route path="/curriculum" component = { Curriculum } />
        <Route path="/application" component = { Application } />
        <Route path="/news/:addr" component = { News } />
        <Redirect from='/news' exact to='/news/msg'/>
        <Route exact path="/user" component = { User } />
        <Redirect path="/" exact to="/curriculum" />
      </Switch>
      <Footer />
      {/* <div className='header'></div>
      <div className='content'></div>
      <div className='footer'></div> */}
    </div>
  );
}

export default App;
